#include <stdio.h>
#include <stdlib.h>

void dataout(int val)
{	
	#define address 0xFFFF;
	
	xdata int *test;   //pointer pointing to an address in xdata space 
	test=(xdata int*)address; //assigning specific address 0xFFFF to pointer
	*test=val;//debug data value 
	printf_tiny("\r\nDebug Event\r\n");
	
	//*p=val;

}
